package com.guanyong.dao;

import com.guanyong.model.AliPayLogModel;
import com.guanyong.model.VideoBuyLogModel;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * Created by mxk on 2017/5/26.
 * 阿里支付接口日志
 *
 */
public interface IAliPayLogDaoMapper {

    int insert(@Param("record") AliPayLogModel record);

    @Select("SELECT 1 FROM ali_pay_log WHERE notify_id=#{notifyId}")
    Integer GetByNotifyId(@Param("notifyId") String notifyId);


    @Update("update  ali_pay_log set pay_type=1,pay_error_msg=#{payErrorMsg} where pay_id=#{payId}")
    Integer ErrorPay(@Param("payId") String payId,
                     @Param("payErrorMsg") String payErrorMsg);

}
